<?php

namespace App\Controllers;

class Home extends BaseController
{
    
    public function index(): string
    {
        $data = [
            'title' => 'A Title',
            'heading' => 'A Heading',
            'messages' => [
                ['message' => 'Message 1'],
                ['message' => 'Message 2'],
                ['message' => 'Message 3']
            ]
        ];
$parser = \Config\Services::parser();
return $parser->setData($data)
              ->render('myView');
    }
    
}
